#include <2025Linux.h>
int main(int argc, char *argv[])
{
    int fds[2];
    //pipe(fds[2]); //pipe函数传入的数组名
    pipe(fds);
    printf("fds[0] = %d, fds[1] = %d\n", fds[0], fds[1]);
    write(fds[1],"hello",5);
    char buf[4096] = {0};
    read(fds[0],buf,sizeof(buf));
    printf("buf = %s\n", buf);
    return 0;
}

